package org.opens.service.impl;

import org.opens.dao.PersonDao;
import org.opens.entity.Person;
import org.opens.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonDao personDao;

    @Override
    public Person findById(Integer id) {
        return personDao.findById(id).orElse(null);
    }

}
